package com.java.system.etity;

import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;



/**
 * 设备表
 * 
 * @author greatesky
 * @email greatesky@hotmail.com
 * @date 2019-10-12 14:44:43
 */
@ApiModel(value = "设备表")
@Table(name = "sys_machine")
@Data
@Accessors(chain = true)
public class SysMachine{
	private static final long serialVersionUID = 1L;
	
	/**
	 * id
	 */
	@Id
	@ApiModelProperty(value = "id")
    private String id;
	
	/**
	 * 设备编码
	 */
    @Column(name = "code")
	@ApiModelProperty(value = "设备编码")
    private String code;
	
	/**
	 * 所属型号
	 */
    @Column(name = "model_id")
	@ApiModelProperty(value = "所属型号")
    private String modelId;
	
	/**
	 * 状态: 0 = 锁定，1 = 待激活，2 = 待验证，3 = 正常
	 */
    @Column(name = "status")
	@ApiModelProperty(value = "状态: 0 = 锁定，1 = 待激活，2 = 待验证，3 = 正常")
    private Integer status;
	
	/**
	 * 绑定手机号码
	 */
    @Column(name = "band_phone")
	@ApiModelProperty(value = "绑定手机号码")
    private String bandPhone;
	
	/**
	 * 手机卡类型：mobile（移动）  unicom（联通）
	 */
    @Column(name = "card_type")
	@ApiModelProperty(value = "手机卡类型：mobile（移动）  unicom（联通）")
    private String cardType;
	
	/**
	 * 是否九阳锁定：0 = 否, 1 = 是）
	 */
    @Column(name = "is_jy_lock")
	@ApiModelProperty(value = "是否九阳锁定：0 = 否, 1 = 是）")
    private Integer isJyLock;
	
	/**
	 * 经度
	 */
    @Column(name = "longitude")
	@ApiModelProperty(value = "经度")
    private String longitude;
	
	/**
	 * 纬度
	 */
    @Column(name = "latitude")
	@ApiModelProperty(value = "纬度")
    private String latitude;
	
	/**
	 * ICID
	 */
    @Column(name = "iccid")
	@ApiModelProperty(value = "ICID")
    private String iccid;
	
	/**
	 * 操作序列号
	 */
    @Column(name = "seqnum")
	@ApiModelProperty(value = "操作序列号")
    private String seqnum;
	
	/**
	 * 密钥
	 */
    @Column(name = "opt_key")
	@ApiModelProperty(value = "密钥")
    private String optKey;
	
	/**
	 * 临时key
	 */
    @Column(name = "temp_key")
	@ApiModelProperty(value = "临时key")
    private String tempKey;
	
	/**
	 * 短信发送渠道：GSM_MODEM 短信猫 SMARTCARD智能物联网卡
	 */
    @Column(name = "sms_channel")
	@ApiModelProperty(value = "短信发送渠道：GSM_MODEM 短信猫 SMARTCARD智能物联网卡")
    private String smsChannel;
	
	/**
	 * 热档数量
	 */
    @Column(name = "heatnum")
	@ApiModelProperty(value = "热档数量")
    private Integer heatnum;
	
	/**
	 * 冷档数量
	 */
    @Column(name = "coolnum")
	@ApiModelProperty(value = "冷档数量")
    private Integer coolnum;
	
	/**
	 * 是否IOT设备: 0 = 否， 1 = 是
	 */
    @Column(name = "is_iot_mac")
	@ApiModelProperty(value = "是否IOT设备: 0 = 否， 1 = 是")
    private Integer isIotMac;
	
	/**
	 * IOT设备密钥
	 */
    @Column(name = "iot_secret")
	@ApiModelProperty(value = "IOT设备密钥")
    private String iotSecret;
	
	/**
	 * IOT通讯类型:0 = 同步，1 = 异步
	 */
    @Column(name = "iot_commication_type")
	@ApiModelProperty(value = "IOT通讯类型:0 = 同步，1 = 异步")
    private Integer iotCommicationType;
	
	/**
	 * 阿里云iot-id
	 */
    @Column(name = "iot_id")
	@ApiModelProperty(value = "阿里云iot-id")
    private String iotId;
	
	/**
	 * 创建时间
	 */
    @Column(name = "crt_time")
	@ApiModelProperty(value = "创建时间")
    private Date crtTime;
	
	/**
	 * 创建人id
	 */
    @Column(name = "crt_user")
	@ApiModelProperty(value = "创建人id")
    private String crtUser;
	
	/**
	 * 创建人名称
	 */
    @Column(name = "crt_name")
	@ApiModelProperty(value = "创建人名称")
    private String crtName;
	
	/**
	 * 创建人IP
	 */
    @Column(name = "crt_host")
	@ApiModelProperty(value = "创建人IP")
    private String crtHost;
	
	/**
	 * 修改时间
	 */
    @Column(name = "upd_time")
	@ApiModelProperty(value = "修改时间")
    private Date updTime;
	
	/**
	 * 修改人id
	 */
    @Column(name = "upd_user")
	@ApiModelProperty(value = "修改人id")
    private String updUser;
	
	/**
	 * 修改人名称
	 */
    @Column(name = "upd_name")
	@ApiModelProperty(value = "修改人名称")
    private String updName;
	
	/**
	 * 修改人IP
	 */
    @Column(name = "upd_host")
	@ApiModelProperty(value = "修改人IP")
    private String updHost;
	
	/**
	 * 删除标识:0=否，1 = 是
	 */
    @Column(name = "del_flag")
	@ApiModelProperty(value = "删除标识:0=否，1 = 是")
    private Integer delFlag;
	
}
